package com.xiaoshuidi.cloud.module.finance.api.finance;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.finance.api.finance.dto.FinanceAccountDTO;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Tag(name = "RPC 服务 - 账户")
@FeignClient(name = "lease-finance-server")
public interface FinanceAccountApi {

    /**
     *
     * @param custId
     * @param custType {@link com.xiaoshuidi.cloud.module.finance.enums.finance.FinanceCustomerTypeEnum}
     * @return
     */
    @GetMapping("/rpc-api/finance/account/get")
    CommonResult<FinanceAccountDTO> getAccount(@RequestParam("custId") String custId, @RequestParam("custType") String custType);
}
